<?php
if (isset($errorMessage)) {
	echo '<p class="error">', $errorMessage, '</p>';
}
?>
<form method="post" action="<?php echo $html->url('/members/add/' . $invite_id)?>">
<h3>New Member Information</h3>
<fieldset>
<legend>User info</legend>
<p><label for="Member/username">User Name</label>
<?php echo $html->input('Member/username',array("size"=>12,'maxlength'=>16,'id'=>"username"));?>
<span id="check"></span>
<?php echo $ajax->observeField('username',array('url'=>'/members/checkUsername','update'=>'check'));?></p>
<p><label for="Member/password">Password</label>
<?php echo $html->password('Member/password',array("size"=>12,'maxlength'=>16));?></p>
<p><label for="Member/passcheck">Repeat Password</label>
<?php echo $html->password('Member/passcheck',array("size"=>12,'maxlength'=>16));?></p>
</fieldset>
<fieldset>
<legend>Personal Info</legend>
<p><label for="Member/first_name">First name</label>
<?php echo $html->input('Member/first_name',array('size'=>"20",'maxlength'=>"25"));?></p>
<p><label for="Member/last_name">Last name</label>
<?php echo $html->input('Member/last_name',array('size'=>"20",'maxlength'=>"25"));?></p>
<p><label for="Member/first_name_2">First name 2</label>
<?php echo $html->input('Member/first_name_2',array('size'=>"20",'maxlength'=>"25"));?></p>
<p><label for="Member/last_name_2">Last Name 2</label>
<?php echo $html->input('Member/last_name_2',array('size'=>"20",'maxlength'=>"25"));?></p>
<p><label for="Member/home_phone">Phone number (h)</label>
<?php echo $html->input('Member/home_phone',array('size'=>"15",'maxlength'=>"20"));?></p>
<p><label for="Member/home_phone">Phone number (w)</label>
<?php echo $html->input('Member/work_phone',array('size'=>"15",'maxlength'=>"20"));?></p>
<p><label for="Member/mobile_phone">Mobile phone</label>
<?php echo $html->input('Member/mobile_phone',array('size'=>"15",'maxlength'=>"20"));?></p>
<p><label for="Member/fax">Fax</label>
<?php echo $html->input('Member/fax',array('size'=>"15",'maxlength'=>"20"));?></p>
<p><label for="Member/email_address">E-mail address</label>
<?php echo $html->input('Member/email_address',array('size'=>"30",'maxlength'=>"100"));?></p>
<p><label for="Member/email_address_2">E-mail address (2)</label>
<?php echo $html->input('Member/email_address_2',array('size'=>"30",'maxlength'=>"100"));?></p>
</fieldset>
<fieldset>
<legend>Home Address</legend>
<p><label for="Member/address_line1">Street Address</label>
<?php echo $html->input('Member/address_line1',array('size'=>"25",'maxlength'=>"50"));?></p>
<p><label for="Member/address_line2">Street Address (line 2, if necessary)</label>
<?php echo $html->input('Member/address_line2',array('size'=>"25",'maxlength'=>"50"));?></p>
<p><label for="Member/city">City</label>
<?php echo $html->input('Member/city',array('size'=>"15",'maxlength'=>"30"));?></p>
<p><label for="Member/state">State</label>
<?php echo $html->input('Member/state',array('size'=>"4",'maxlength'=>"2"));?></p>
<p><label for="Member/zip">Zip</label> 
<?php echo $html->input('Member/zip',array('size'=>"12",'maxlength'=>"10"));?></p>
<p><label for="Member/county">County (optional)</label> 
<?php echo $html->input('Member/county',array('size'=>"8",'maxlength'=>"20"));?></p>
</fieldset>
<fieldset>
<legend>Account Info</legend>
<p><label for="Member/no_postal_mail">Don't send postal mail</label>
<input type="checkbox" name="Member/no_postal_mail"/></p>
<p><label for="Member/volunteer">I am available to volunteer</label>
<input type="checkbox" name="Member/volunteer"/></p>
</fieldset>
<input name='reset' type='reset' value='Clear form'>
<?php echo $html->submit('Register'); ?>
</form>